Vendor-Specified License Manager Cleanup

Using the VLSserverVendorFinalize function, you can perform customized cleanup activities right before the License Manager shutdown. For example, writing certain information in files before the License Manager is stopped or cleaning up of memory or other resources allocated during the VLSserverVendorInitialize operation.

This API, if called, will be used by the License Manager during graceful shutdown scenarios like using the lsrvdown utility or the -X stop option.

The API VLSserverVendorFinalize and VLSserverVendorInitialize API are executed in different threads. Therefore, care must be taken if the API are using common resources like threads, semaphores etc.

Function Prototype 

LSERV_STATUS VLSserverVendorFinalize(void);

Returns

Returns LS_SUCCESS(0) on success.

Returns non-zero on failure.

Steps to Perform

1. Create the VLSserverVendorFinalize function.

2. Update the SRV_VENDOR_INIT_OBJS variable in the custom32.mak file.

3.Follow the build procedure specified in How to Use the custom32.mak File?.

Code Snippet

LSERV_STATUS VLSserverVendorFinalize(void)
{
      /* TODO: add vendor-specific cleanup */
   return LS_SUCCESS;
}